<?php
/* $Id$ */
use Buan\Config;
use Buan\UrlCommand;

$urlRoot = Config::get('ext.Scribble.urlRoot');
ScribbleAdminView::getGlobalView()->addStylesheets("{$urlRoot}/css/scribble/page/edit.secondary.css");
ScribbleAdminView::getGlobalView()->addJavascripts("{$urlRoot}/js/scribble/page/edit.secondary.js");
?>

<a class="task task-create" href="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'page', 'create')); ?>">Create A Page</a>

<?php if($page->isInDatabase()): ?>
	<div class="hr"><hr /></div>

	<h3>Permalink</h3>
	<input id="permalink-url" type="text" value="http://<?php $this->html->e($page->getPermalinkUrl()); ?>" readonly="readonly" title="http://<?php $this->html->e($page->getPermalinkUrl()); ?>" />
	<p>
		<a href="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'help')); ?>" rel="help">What's a permalink?</a>
	</p>
<?php endif; ?>